import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {PyContainerComponent, PyLoggedInGuard, PyLoginComponent, PyLoginGuard} from 'pengesoft-ng-lib';
import {SearchComponent} from './components/staffsComponents/search/search.component';
import {EnterFilesComponent} from './views/staffsComponents/enter-files/enter-files.component';

const routes: Routes = [
  {
    path: 'login',
    component: PyLoginComponent,
    canActivate: [PyLoggedInGuard]
  }, {
    path: '',
    component: PyContainerComponent,
    canActivate: [PyLoginGuard]
  },
  // { path: 'first-component', component: EnterFilesComponent },
  // { path: 'second-component', component: SearchComponent },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
